<template>
	<view>
		<image v-for="(item,index) in roomMaps" :key="index" :src="item" mode="aspectFit" @click="mapClick(item)">
		</image>
	</view>
</template>

<script>
	
	export default {
		data() {
			return {
				roomMaps: ["/static/map1.png", "/static/map2.png", "/static/map3.png", "/static/map4.png"]
			}
		},
		methods: {
			mapClick(src) {
				uni.previewImage({
					urls: this.roomMaps,

				})
			}
		}
	}
</script>

<style>

</style>